home *** CD-ROM | disk | FTP | other *** search
- /* ==========================================================================
- Header file for the LDAP Directory Service Access Module.
-
- Written by: Gavin Eadie • The University of Michigan Information Systems
- Phone: (313) 936-0816
- AppleLink: A67
- Internet: gavin@umich.edu
- BITNET: USERGAV@UMICHUM
- ========================================================================== */
-
-
- #include "OCEAuthDir.h"
- #include "OCEErrors.h"
-
- #include "Audit.h"
- #include "AuditMacros.h"
-
- #define iconCount 7
- #define otherRStrID 5251
-
- #define skelType 'Skel';
-
- typedef struct Icon_Data {
- Handle iconHandle; // Icon Handle
- ResType iconType; // Icon Type
- short iconLength; // Icon Length
- };
-
- typedef struct MyDashGlobals {
- QHdr CSAM_Q;
-
- struct Icon_Data Icon[iconCount]; // My Icons
- Handle ldap_User_Hdl; // handle to locked "ldap User" (RString)
- Handle ldap_Group_Hdl; // handle to locked "ldap Group" (RString)
- Handle ldap_Other_Hdl; // handle to locked "ldap Other" (RString)
-
- char LDAP_ServerName[48]; // Internet name of the server
- char LDAP_SearchBase[96]; // Internet name of the server
-
- CreationID CSAM_CID; // this CSAM CID
- CreationID Cat_CID; // this catalog CID
- DirectoryName Cat_Name; // this catalog name
- DirDiscriminator Cat_Disc; // this catalog discriminator
-
- unsigned long Delta_Count; // incremented on every change to directory
-
- AuditPtr Audit_Ptr; // the audit pointer
- } MyDashGlobals, * MyDashGlobPtr;
-
- /* --------------------------------------------------------------------------
- Set_Interrupt_Level • inline function
-
- Generates:
- Move SR, D0
- Move 2(A7), SR
-
- Disable interrupts by:
- Old_PSW = Set_Interrupt_Level(0x2600);
-
- Restore by:
- Set_Interrupt_Level(Old_PSW);
- -------------------------------------------------------------------------- */
- #if defined(powerc) || defined (__powerc)
- unsigned short Set_Interrupt_Level(unsigned short x);
-
- unsigned long GetA5(void);
- #else
- unsigned short Set_Interrupt_Level(unsigned short x) = {0x40C0, 0x46EF, 0x0002};
-
- unsigned long GetA5(void) = 0x200d;
- #endif
-
- pascal OSErr CSAM_Procs(void * , DirParamBlockPtr , Boolean );
- pascal OSErr CSAM_Parse(void * , DirParamBlockPtr , Boolean );
-
- OSErr Dir_Procs(register MyDashGlobals * , DirParamBlockPtr );
- OSErr Dir_Parse(register MyDashGlobals * , DirParamBlockPtr );
-
- void io_Complete(void * , OSErr );
-